import request from '@/utils/request'

export function dramaList(dramaVo) {
  return request({
    url: '/drama/list',
    method: 'post',
    params: dramaVo
  })
}

export function updateDrama(data) {
  return request({
    url: '/drama/update',
    method: 'post',
    data
  })
}

export function saveDrama(data) {
  return request({
    url: '/drama/save',
    method: 'post',
    data
  })
}

export function queryOne(params) {
  return request({
    url: '/drama/queryOne',
    method: 'get',
    params
  })
}

export function deleteDrama(id) {
  return request({
    url: `/drama/delete`,
    method: 'get',
    params: {
      id
    }
  })
}

export function dramaOptions() {
  return request({
    url: '/drama/options',
    method: 'get'
  })
}
